<html><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta content="text/javascript" http-equiv="content-script-type">
<title>tango.net.ftp.Telnet</title>

<link rel="stylesheet" type="text/css" href="css/style.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="css/ie56hack.css"><![endif]-->
<script language="JavaScript" src="js/util.js" type="text/javascript"></script>
<script language="JavaScript" src="js/tree.js" type="text/javascript"></script>
<script language="JavaScript" src="js/explorer.js" type="text/javascript"></script>
<script>
function anchorFromTitle(title, path, ext) {
  var url = path + title + "." + ext;
  document.write("<a href='" + url + "'>" + title + "</a>");
  }
</script>
</head><body>
<div id="tabarea"></div><div id="explorerclient"></div>
<div id="content"><script>explorer.initialize("tango.net.ftp.Telnet");</script>
        <table class="content">
                <tr><td id="docbody"><h1><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461">tango.net.ftp.Telnet</a></h1>
                
<b>License:</b><br>
BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a><br><br>
<b>Version:</b><br>
Initial release: June 2006<br><br>
<b>author:</b><br>UWB<br><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>class <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L30">Telnet</a></span>
<script>explorer.outline.addDecl('Telnet');</script>;</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Utilities for telnet-based connections.</font><br><br>
<b>Params:</b><br>
<table>
<tr><td nowrap valign="top" style="padding-right: 8px"><span class="funcparam">TelnetException</span></td><td>the type for exceptions thrown</td></tr>
<tr><td nowrap valign="top" style="padding-right: 8px"><span class="funcparam">socket</span></td><td>the connected socket</td></tr>
<tr><td nowrap valign="top" style="padding-right: 8px"><span class="funcparam">timeout</span></td><td>the timeout for socket communication</td></tr></table><br>
<dl>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>Socket <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L33">socket</a></span>
<script>explorer.outline.addDecl('socket');</script>; [protected]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">The control connection socket.</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>TimeSpan <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L36">timeout</a></span>
<script>explorer.outline.addDecl('timeout');</script>; [protected]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">The number of milliseconds to wait for socket communication or connection.</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L39">exception</a></span>
<script>explorer.outline.addDecl('exception');</script>(char[] <span class="funcparam">msg</span>); [abstract]</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">provided by host</font><br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L46">sendLine</a></span>
<script>explorer.outline.addDecl('sendLine');</script>(void[] <span class="funcparam">buf</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Send a line over the socket.</font><br><br>
<b>Params:</b><br>
<table>
<tr><td nowrap valign="top" style="padding-right: 8px"><span class="funcparam">buf</span></td><td>the bytes to send</td></tr></table><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>void <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L56">sendData</a></span>
<script>explorer.outline.addDecl('sendData');</script>(void[] <span class="funcparam">buf</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Send data over the socket.</font><br><br>
<b>Params:</b><br>
<table>
<tr><td nowrap valign="top" style="padding-right: 8px"><span class="funcparam">buf</span></td><td>the bytes to send</td></tr></table><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>char[] <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L100">readLine</a></span>
<script>explorer.outline.addDecl('readLine');</script>();</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Read a CRLF terminated line from the socket.</font><br><br>
<b>Returns:</b><br>
the line read<br><br></dd>
<script>explorer.outline.writeEnabled = true;</script>
<dt><span class="decl"><li>Socket <span class="currsymbol"><a href="http://www.dsource.org/projects/tango/browser/trunk/tango/net/ftp/Telnet.d?rev=3461#L162">findAvailableServer</a></span>
<script>explorer.outline.addDecl('findAvailableServer');</script>(char[] <span class="funcparam">hostname</span>, int <span class="funcparam">port</span>);</li></span></dt>
<script>explorer.outline.writeEnabled = false;</script>
<dd>
<font color="black">Find a server which is listening on the specified port.</font><br><br>
<b>Params:</b><br>
<table>
<tr><td nowrap valign="top" style="padding-right: 8px"><span class="funcparam">hostname</span></td><td>the hostname to lookup and connect to</td></tr>
<tr><td nowrap valign="top" style="padding-right: 8px"><span class="funcparam">port</span></td><td>the port to connect on</td></tr></table><br></dd></dl></dd></dl></td></tr>
                <tr><td id="docfooter">
                        Copyright (c) 2006 UWB. All rights reserved :: page rendered by CandyDoc. Generated by <a href="http://code.google.com/p/dil">dil</a> on Sun Jun  8 17:12:55 2008.
                </td></tr>
        </table>
</div>
<script></script>
</body></html>